import type { CustomerProfilingItem, ProcessTaskItem } from "@/apis/system/type";

/**
 * 业务类型
 */
export type profilingItem = {
  [props: string]: any;
} & CustomerProfilingItem;

/**
 * 通过画像id查找对应阶段设置
 */
export type StageItem = {
  stageSettingId: string | number;
  stageName: string;
  portraitStageId: string | number;
};

/**
 * 新增/编辑模板
 */
export type TemplateParams = {
  packageId?: string | number;
  packageName: string;
  portraitId: string | number;
  stageSettingId: string | number;
};

/**
 * 模板列表 data
 */
export type TemplateItem = {
  packageType: string | number;
  portraitName: string;
  stageSettingName: string;
  stageType: string;
} & TemplateParams;

/**
 * 任务列表
 */
export type TemplateTaskItem = {
  beforeTaskId: string;
  beforeTaskFormId: string;
  stageType: string | number;
  checkName: string;
  packageId: string | number;
} & ProcessTaskItem;

/**
 * 新增/编辑任务
 */
export type TemplateTaskParams = {
  packageId: string | number;
} & ProcessTaskItem;
